<%-- 
    Document   : UploadImage
    Created on : Nov 11, 2013, 8:02:11 AM
    Author     : nguyen
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <link href="css/index.css" rel="stylesheet" type="text/css"/>

        <script src="js/dropdown.js"></script>
        <script src="js/login.js"></script>
        <link rel="stylesheet" href="css/login.css" />
        <title>JSP Page</title>
    </head>
    <body>

        <div class="bound-header">
            <div class="header">
                <div class="header-left">
                    <a href="index.jsp" title="Home"/><img src="css/img/LOGO.png" width="200" height="70" alt="Home"/></a>
                </div>
                <div class="header-right">
                    <!-- Login Starts Here -->
                    <div id="loginContainer">
                        <c:if test="${user==null}">
                            <a class="Login" href="#"><span>Login</span></a>
                        </c:if>
                        <c:if test="${user!=null}">
                            <a class="Logout" href="Logout"><span>Logout</span></a>
                        </c:if>
                        <div style="clear:both"></div>
                        <div id="loginBox">                
                            <form id="loginForm" action="Login" method="POST">
                                <fieldset id="body">
                                    <fieldset>
                                        <label for="email">Email Address</label>
                                        <input type="text" name="txtUsername" id="email" />
                                    </fieldset>
                                    <fieldset>
                                        <label for="password">Password</label>
                                        <input type="password" name="txtPassword" id="password" />
                                    </fieldset>
                                    <input type="submit" id="login" value="Sign in" />
                                    <label for="checkbox"><input type="checkbox" id="checkbox" />Remember me</label>
                                </fieldset>
                                <span><a href="registration.jsp">Registration!</a></span>
                            </form>
                        </div>
                    </div>
                    <!-- Login Ends Here -->
                    <a class="Regis" href="registration.jsp">Registration</a>
                    <c:if test="${user!=null}">
                        <a class="menu" href="CreateAlbum.jsp"><span>Create Album</span></a>
                        <a class="menu" href="UploadImage.jsp"><span>Upload Image</span></a>
                    </c:if>
                </div>
            </div>
        </div>
        <div class="bound-content">
            <div class="content">
                <div class="title">
                    <h3>UPLOAD IMAGE!</h3>
                </div>
                ${msg}<br>
                ${msg1}<br>
                <div class="form">
                    <form action="UploadImage" method="POST" enctype="multipart/form-data">
                        <table>
                            <tr class="tr">
                                <td class="td">
                                    Name:
                                </td>
                                <td class="td">
                                    <input type="file" name="imagename" style=" height: 25px"/>
                                </td>
                            </tr>
                            <tr class="tr">
                                <td class="td">
                                    Day Shooting:
                                </td>
                                <td class="td">
                                    <input type="text" name="dayshooting" size="50" value="" style=" height: 25px" />
                                </td>
                            </tr>
                            
                            <tr class="tr">
                                <td class="td">
                                    Introduction:
                                </td>
                                <td class="td">
                                    <input type="text" name="introduction" size="50" value="" style=" height: 25px" />
                                </td>
                            </tr>
                            <tr class="tr">
                                <td class="td">

                                </td>
                                <td class="td">
                                    <input type="submit" value="Upload" class="btn"/>
                                </td>   
                            </tr>
                        </table>

                    </form>
                </div> 
            </div>
        </div>
        <div class="bound-footer">
            <div class="footer">
                Copyright 2013 © PhotoBox <br>
                Address: abc Street, cde City <br>
                Designer: Thoinvgc00312
            </div>
        </div>


    </body>
</html>
